home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / intrvews / xgrab.lha / xgrab / include / tview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-03-07  |  1.2 KB  |  66 lines

  1. /**
  2.    GRAB Graph Layout and Browser System
  3.  
  4.    Copyright (c) 1989, Tera Computer Company
  5.  **/
  6.  
  7. /* View of the text (status message, file name, graph name) */
  8.  
  9. #ifndef tview_h
  10. #define tview_h
  11.  
  12. #include <InterViews/interactor.h>
  13. #include <InterViews/box.h>
  14. #include <InterViews/message.h>
  15.  
  16. static const gmax = 40;        /* length of the graph name */
  17. static const fimax = gmax;    /* length of the file name */
  18. static const smax = gmax * 2;    /* length of the status message */
  19.  
  20. // the graph and file names
  21.  
  22. class FirstLine : public HBox 
  23. {
  24. public:
  25.     FirstLine(char*, char*);
  26.     void ChangeFileName (char*);
  27.     void ChangeGraphName (char*);
  28. private:
  29.     HBox* gbox;
  30.     HBox* fbox;
  31.     Message* gmsg;
  32.     Message* fmsg;
  33.     char *gname;
  34.     char *fname;
  35. };
  36.  
  37. // the status line
  38.  
  39. class SecondLine : public HBox 
  40. {
  41. public:
  42.     SecondLine(char*);
  43.     void ChangeStatus(char*);
  44. private:
  45.     HBox* sbox;
  46.     Message* smsg;
  47.     char *status;
  48. };
  49.  
  50. // everyone together
  51.  
  52. class TextView : public VBox 
  53. {
  54. public:
  55.     TextView(char*, char*);
  56.     void ChangeStatusLine(char*, boolean);
  57.     void ChangeFileName (char*);
  58.     void ChangeGraphName (char*);
  59. private:
  60.     FirstLine* line1;
  61.     SecondLine* line2;
  62.     void Init();
  63. };
  64.  
  65. #endif
  66.